# -*- coding: utf-8 -*-,
# @File : test03.py,
# @Author : lidong,
# @IDEA: PyCharm
# @Time :  2022/4/25 15:27

import unittest
import requests

class Tess(unittest.TestCase):
    def setUp(self):
        res = requests.get('http://www.baidi.com')
        return res.status_code

    def test1(self):
        # 判断获取的状态是否等于200
        self.assertEqual(self.setUp(), 200)


if __name__ == '__main__':
    unittest.main()